/**
 * 文 件 名:  PlayerLoginAndRunScript.java
 * 工 程 名:  ScriptManager
 * 创建日期:  2015年4月3日 下午4:48:48
 * 创建作者:  杨 强  <281455776@qq.com>
 */
package test.impl;

import script.impl.BaseScript;
import test.IPlayerLoginScript;
import test.IPlayerRunScript;

/**
 * @author 杨 强
 *
 */
public class PlayerLoginAndRunScript extends BaseScript implements IPlayerRunScript, IPlayerLoginScript {
    private static final PlayerLoginAndRunScript script = new PlayerLoginAndRunScript();

    public static PlayerLoginAndRunScript getScript() {
        return script;
    }

    @Override
    public void login() {
        System.out.println("玩家111登录了");
        PlayerLoginScript.getScript().login();
    }

    @Override
    public void run(long time) {
        System.out.println("玩家111走到当前位置的时间" + time);
        PlayerRunScript.getScript().run(1);
    }

    @Override
    public void onloadScript() {
        System.out.println("111初始化");
        PlayerLoginScript.getScript().onloadScript();
    }

    @Override
    public void unloadScript() {
        System.out.println("111卸载");
        PlayerLoginScript.getScript().unloadScript();
    }
}
